home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / xe.zip / HEXEDIT.DOC < prev    next >
Text File  |  1991-01-06  |  7KB  |  191 lines

  1.                                  HexEdit
  2.                                 v11.10.88 
  3.                            by Richard E. Morris 
  4.                        918-437-3837 (24 hour BBS)     
  5.  
  6.  
  7. INTRODUCTION
  8. ------------
  9.  
  10. You can use a word processor or text editor to modify text files, but 
  11. neither of those programs can edit binary files. Files with extensions 
  12. such as .EXE and .COM, or other binary files such as graphics files, 
  13. simply won't load into a word processor.
  14.  
  15. HexEdit lets you load, view, and edit binary files of all kinds. It 
  16. includes many word processing features, such as search and replace, 
  17. making it one of the most powerful editors available. 
  18.  
  19.  
  20.                              WARNING!
  21.                              -------- 
  22.  
  23. Program files -- those with extensions .EXE and .COM -- must be 
  24. modified very carefully. Unless you're very familiar with binary 
  25. program files, use HexEdit only to change the ASCII portions of those 
  26. files. If you change other parts of the files, or alter their length, 
  27. chances are they won't run. 
  28.  
  29. WHEN MODIFYING FILES, ALWAYS WORK WITH A COPY OF THE FILE, NEVER 
  30. WITH THE ORIGINAL FILE!
  31.  
  32.  
  33. WHEN TO USE HEXEDIT
  34. -------------------
  35.  
  36. Those cautions aside, there are many uses for HexEdit. Programmers 
  37. can use it to fix spelling errors in a .COM or .EXE file without 
  38. recompiling the program. Database users can repair corrupted data 
  39. files. End users can use HexEdit to examine and alter programs and 
  40. other binary files.
  41.  
  42. You can also use the program to inspect binary files for messages 
  43. that may indicate that the file is a Trojan horse program. Most 
  44. of these programs contain some sort of message, like "Gotcha!" or "Now 
  45. Trashing Hard Disk."
  46.  
  47. Finally, it's just interesting to have the power to look inside files
  48. you couldn't see before.
  49.  
  50.  
  51. INSTALLATION
  52. ------------
  53.  
  54. Install HexEdit by copying HEXEDIT.EXE onto your utility diskette or 
  55. into a directory on your hard disk. If you copy the program into a 
  56. directory named in the PATH statement in your AUTOEXEC.BAT file, 
  57. you'll be able to run it from any prompt. For more information about 
  58. the PATH statement, see your DOS manual.
  59.  
  60.  
  61. RUNNING HEXEDIT
  62. ---------------
  63.  
  64. Start the program with the command HEXEDIT <Enter>.  You'll see an 
  65. opening shareware screen. Press any key to proceed. You'll see a 
  66. list of HexEdit's commands. Press <F3> to load a file.  You'll be 
  67. prompted for a filename.
  68.  
  69. Once a file is loaded, you'll see the editing screen. It's divided 
  70. into three columns. On the left are the relative addresses of the 
  71. file, in hexadecimal notation. The next column is the contents of the 
  72. file, also in hexadecimal. The far right column is the file in ASCII 
  73. format.
  74.  
  75. Use the cursor keys to move around in the file. Edit by typing over 
  76. the characters you want to change. In normal use, you'll want to alter 
  77. characters in the ASCII column. Unless you know exactly what you're 
  78. doing, don't change the hexadecimal column.
  79.  
  80. Press <Alt>-H at any time to view the command list.
  81.  
  82.  
  83. HEXEDIT COMMANDS                                  
  84. ----------------
  85.  
  86. <F1> - Delete a range of characters to the memory buffer. Before giving 
  87. this command, place the cursor on the first character of the block 
  88. you want to delete to the buffer. You'll be prompted to move the 
  89. cursor to the end of the block. Press <F1> to complete the deletion.
  90.  
  91. <Shift>-<F1> - Delete range. Unlike the previous command, this 
  92. command removes the block of characters permanently. You'll be asked 
  93. to confirm this operation.
  94.  
  95. <F2> - Insert characters into file. If you give this command, you'll 
  96. be asked for the number of characters to insert. HexEdit will insert 
  97. that number of hexadecimal character 00, at the cursor location.
  98.  
  99. <Shift>-<F2> - Insert contents of buffer. If you've deleted a block to 
  100. the buffer, this command will insert the buffer at the cursor 
  101. location.
  102.  
  103. <F3> - Open a file for editing.
  104.  
  105. <Shift>-<F3> - Insert a file before cursor. This command lets you 
  106. combine multiple files.
  107.  
  108. <F4> - Save file. You'll be prompted for a filename, with the current 
  109. file as a default.
  110.  
  111. <Shift>-<F4> - Search backward. Before using this command, use 
  112. <Shift>-<F6> to set the search text.
  113.  
  114. <F5> - Go to an address in the file. Enter the address in hexadecimal 
  115. format.
  116.  
  117. <Shift>-<F5> - Fill a range with a byte value. This command replaces 
  118. all characters in a block with the character you specify. You'll be 
  119. prompted for the replacement character, then asked to mark the end of 
  120. the block. 
  121.  
  122. <F6> - Search forward. Use <Shift>-<F6> to set the search text before 
  123. giving this command.
  124.  
  125. <Shift>-<F6> - Set search string. Use this command before any search 
  126. or replace operation. You'll be asked whether you want to search for 
  127. hexadecimal or ASCII characters, then asked for the search characters. 
  128. HexEdit's search is case-sensitive, so searching for "Hello" won't 
  129. find "hello".
  130.  
  131. <F7> - Replace (must do search first). Use <Shift>-<F7> to set the 
  132. replacement text before giving this command. Replaces one block at a 
  133. time.    
  134.  
  135. <Shift>-<F7> - Set replace string. Works the same as <Shift>-<F7>.
  136.  
  137. <F8> - Calculate 16-bit checksum of file.
  138.  
  139. <Shift>-<F8> - Replace all. Set the search and replace strings before 
  140. giving this command.
  141.  
  142. <F9> - Copy range to buffer. Similar to <F1>, but does not delete the 
  143. block.
  144.  
  145. <Shift>-<F9> - Overwrite with buffer. If you have characters in the 
  146. buffer, this command overwrites the same number of characters, from 
  147. the cursor position.
  148.  
  149. <F10> - Close file. You'll be prompted to save the file.
  150.  
  151. <Shift>-<F10> - Close file and exit the program. You'll be prompted to 
  152. save the file.
  153.  
  154. <Esc> - Abort input of string. Also aborts the current command and 
  155. returns you to the editing screen.
  156.  
  157. <Home> - Move to beginning of file.
  158.  
  159. <End> - Move to end of file.
  160.  
  161. Arrow Keys - Move around file.
  162.  
  163. <PgUp> and <PgDn> - Move around file in larger jumps.
  164.  
  165. <Alt>-H - Display a list of commands.
  166.  
  167. <Alt>-<Esc> - Undo last change. (Replace All cannot be undone.)
  168.  
  169. <Alt>-D - DOS Shell (secondary command processor). Allows a temporary 
  170. exit to DOS>. Type EXIT <Enter> to return to HexEdit.
  171.  
  172.  
  173. SHAREWARE NOTICE                          
  174. ---------------- 
  175.  
  176. Many hours have gone into this program, and I would like to be able to 
  177. justify writing it by having you, the end user, help me financially.
  178.  
  179. This is the most powerful program I have seen of its type, and once you 
  180. become familiar with its various functions, I hope you will agree.
  181.  
  182. If you would like to contribute and become a registered owner, please 
  183. mail $10.00 to the following address:
  184.  
  185. Richard E. Morris 
  186. REM Software Inc. 
  187. 12182 East 21 Court
  188. Tulsa, Oklahoma 74129
  189.  
  190. I also have a BBS. Call (918)437-3837. (300 megs, 9600 baud, 20mhz 386) 
  191.